<?php

namespace html\core;

class tag extends \system\core\abstractTag
{
	protected function setAttributes(attributes $object)
	{
		$this->_attributes = $object;
	}
	protected function setStyles(styles $object)
	{
		$this->_styles = $object;
	}

	function addAttribute($keyvaluepair, $delimiter=false)
	{
		$newAttribute = new attribute($keyvaluepair, $delimiter);
		//print_r($newAttribute);
		$this->attributeManager()->addAttribute($newAttribute);
		return $this;
	}

	function addStyle($keyvaluepair)
	{
		$newStyle = new style($keyvaluepair);
		$this->styleManager()->addAttribute($newStyle);
		return $this;
	}

}

?>
